<?php

namespace app\model;

use think\Model;


//店铺收藏
class ShopFavorite extends Model
{
    // Define the table name
    protected $name = 'shop_favorite';
    public $timestamps = false;


    // 获取用户收藏店铺数量
    public function getAllShopFavoriteCount($uid){
        $count = $this->where('user_id',$uid)->count();
        return $count;
    }
}
